cmake_minimum_required(VERSION 2.6)
project(log2mail)

include_directories("${PROJECT_SOURCE_DIR}")

set(SRCS main.c
	db.c
	timer.c
	mail.c)

add_executable(log2mail ${SRCS})

target_link_libraries(log2mail
	-lpthread
	-lcurl
	-lsqlite3
	-lrt
	)

set_target_properties(log2mail
	PROPERTIES
	COMPILE_FLAGS "-O2 -Wall"
	#LINK_FLAGS "-s"
	)

